package com.suncreate.radarscan.model;

//车道线
public class Lane {
	private double width;//车道宽度（米）
	private boolean isRightDirection;//车道方向（true 正向，false 反向）
	private boolean isRealLineLeft;//车道左侧是否是实线（true 实线，false 虚线）
	private boolean isRealLineRight;//车道右侧是否是实线（true 实线，false 虚线）
	private double maxSpeed;//最大车速（km/s）
	private boolean isNotRoad;//是否是隔离带，true  是，false 不是
	public double getWidth() {
		return width;
	}
	public void setWidth(double width) {
		this.width = width;
	}
	public boolean isRightDirection() {
		return isRightDirection;
	}
	public void setRightDirection(boolean isRightDirection) {
		this.isRightDirection = isRightDirection;
	}
	public boolean isRealLineLeft() {
		return isRealLineLeft;
	}
	public void setRealLineLeft(boolean isRealLineLeft) {
		this.isRealLineLeft = isRealLineLeft;
	}
	public boolean isRealLineRight() {
		return isRealLineRight;
	}
	public void setRealLineRight(boolean isRealLineRight) {
		this.isRealLineRight = isRealLineRight;
	}
	public double getMaxSpeed() {
		return maxSpeed;
	}
	public void setMaxSpeed(double maxSpeed) {
		this.maxSpeed = maxSpeed;
	}
	public boolean isNotRoad() {
		return isNotRoad;
	}
	public void setNotRoad(boolean isNotRoad) {
		this.isNotRoad = isNotRoad;
	}
	@Override
	public String toString() {
		return "Lane [width=" + width + ", isRightDirection=" + isRightDirection + ", isRealLineLeft=" + isRealLineLeft
				+ ", isRealLineRight=" + isRealLineRight + ", maxSpeed=" + maxSpeed + ", isNotRoad=" + isNotRoad + "]";
	}
	
	
	/*C#写法
    public class RoadLine
    {
        public double Width=3;//车道宽度（米）
        public bool IsRightDirection=true;//车道方向（true 正向，false 反向）
        public bool IsRealLineLeft=false;//车道左侧是否是实线（true 实线，false 虚线）
        public bool IsRealLineRight = false;//车道右侧是否是实线（true 实线，false 虚线）
        public double MaxSpeed = 60;//最大车速（km/s）
        public bool IsNotRoad = false;//是否是隔离带，true  是，false 不是
    }*/
	
}
